﻿using System.Data.Entity.ModelConfiguration;
using OneBlog.Model.Entities;

namespace OneBlog.DataAccessLayer.ModelConfigurations
{
    public class BlogTypeMap:EntityTypeConfiguration<BlogType>
    {
        public BlogTypeMap()
        {
            ToTable("BlogType");
            Property(c => c.Name).HasMaxLength(100).IsRequired();
            Property(c => c.Description).HasMaxLength(400);
        }
    }
}